import apiService from '../http/request'

enum TomEnum {
    HOMEAPI = '/react/userlist',
    ADDAPI = '/react/adduser',
    DETELEAPI = '/react/deleteuser',
    EditAPI = '/react/edituser',
}
export const getUserlistApi = (data: object) => {
    return apiService.post(TomEnum.HOMEAPI, data)
}
export const addUserApi = (data: object) => {
    return apiService.post(TomEnum.ADDAPI, data)
}
export const deleteUserApi = (data: object) => {
    return apiService.post(TomEnum.DETELEAPI, data)
}
export const editUserApi = (data: object) => {
    return apiService.post(TomEnum.EditAPI, data)
}
